package com.hzw.saas.web.app.rss.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description
 * @Date 2021/7/1 11:47 上午
 * @Created by sonam
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "文章收藏参数")
public class JournalArticleFavParam {

    @NotBlank(message = "订阅的文章id不能为空")
    @ApiModelProperty(value = "文章id", required = true)
    private String articleId;

    @NotBlank(message = "文献分类不能为空")
    @ApiModelProperty(value = "文献分类ID")
    private String libraryCatalogId;

    @NotNull(message = "收藏参数不能空")
    @ApiModelProperty(value = "1｜收藏，0｜取消收藏", required = true)
    private Integer fav;

}
